Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Graphics /
Chapter 2 - Geometric Shapes / Geometric Shapes Reference
Functions / Getting and Setting Shape Geometries


GXSetLine

You can use the GXSetLine function to change the geometry of a line shape.

void GXSetLine(gxShape target, const gxLine *data);
target
A reference to the line shape whose geometry you want to change.
data
A pointer to the new line geometry.
DESCRIPTION
The GXSetLine function copies the geometry information from the data parameter into the geometry property of the target line shape. If the target shape is not a line shape, this function replaces the target shape with a line shape and sets the shape fill to open-frame fill.

You must provide a pointer to a gxLine structure in the data parameter--if you pass nil for this parameter, the function posts the error code parameter_is_nil.

If the target shape is locked (that is, its gxLockedShape shape attribute is set), this function posts the error shape_access_not_allowed.

ERRORS, WARNINGS, AND NOTICES
Errors 
out_of_memory 
shape_is_nil 
parameter_is_nil(debugging version)
shape_access_not_allowed(debugging version)
SEE ALSO
For general information about line geometries, see "Line Shapes" on page 2-17.

For the definition of the gxLine structure, see page 2-105.

To create a new line shape, use the GXNewLine function, which is described on page 2-112.

To examine the geometry of an existing line shape, use the GXGetLine function, which is described on page 2-123.

To draw a line geometry without creating a line shape, use the GXDrawLine function, which is described on page 2-158. To draw a line shape, use the GXDrawShape function, which is described in the chapter "Shape Objects" in Inside Macintosh: QuickDraw GX Objects.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help